package com.base.project

import com.orange.common.ktx.mmkvBool
import com.orange.common.ktx.mmkvString

/**
 *  created by Orange on 2022/12/8 17:16
 */
object Constants {

    object Events {
        //账号已在别处登录
        const val LOGIN_ERROR = "login_error"
    }

    /**
     * advertisingId 谷歌广告 ID
     */
    var adId by mmkvString()

    /**
     * 是否执行过google_referrer
     */
    var googleReferrer by mmkvBool()

    /**
     * 邀请id
     */
    var inviteId by mmkvString()

    var userName by mmkvString("默认值")

    fun test(){
        inviteId = "设置值"    //这里等同于 MMKVUtils.put("inviteId", "设置值")
        val string = inviteId //这里等同于 MMKVUtils.getString("inviteId", "")
        inviteId.isEmpty()
    }
}